{% extends 'register/base.html' %}
{% load i18n %}
{% block script %}
{% endblock  %}

{% block title %}<title>:: duetopia :: {% trans 'contact' %} - {{ agent.name }}</title>{% endblock %}

{% block content %}
<h2>{{agent}}</h2> 

<table>
{% if agent.name %}
<tr><th>{% trans 'name' %}</th><td>{{ agent.name }}</td></tr>
{% endif %}
<tr><th>{% trans 'agent' %}</th><td>{{agent.email}}</td></tr>
{% if agent.description %}
<tr><th>{% trans 'description' %}</th><td>{{ agent.description }}</td></tr>
{% endif %}
{% if agent.organization %}
<tr><th>{% trans 'organization' %}</th><td>{{ agent.organization.name }}</td></tr>
{% endif %}
{% if agent.position %}
<tr><th>{% trans 'position' %}</th><td>{{ agent.position.name }}</td></tr>
{% endif %}
<tr><td colspan="2"><a href="edit/">edit</a></td></tr>
</table>

{% if datasets %}
<p>{% trans 'datasets' %}
<ul>
{% for ds in datasets %}
<li><a href="{{ baseurl }}dataset/{{ ds.id }}">{{ ds }}</a></li>
{% endfor %}
</ul></p>
{% endif %}
{% endblock %}
